import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {path:'/',redirect:'layout'},
  {path:'/layout', name:'layout',component:() => import("@/layout/Layout.vue"),redirect:"/ManageHome",
    children:[
      {path:"/ManageHome",name:'ManageHome',component: ()=> import('@/views/ManageHome.vue')},
      {path: '/AppManage',name: 'AppManage',component: ()=> import('@/views/AppManage.vue')},
      {path: '/ChatAssit',name: 'ChatAssit',component: ()=> import('@/views/ChatAssit.vue')},
      {path: '/Document',name: 'Document',component: ()=> import('@/views/Document.vue')},
      {path: '/KnowBases',name: 'KnowBases',component: ()=> import('@/views/KnowBases.vue')},
      {path: '/ModelManage',name: 'ModelManage',component: ()=> import('@/views/ModelManage.vue')},
      {path: '/DocSilceManage',name: 'DocSilceManage',component: ()=> import('@/views/DocSilceManage.vue')},
      {path: '/feedback',name: 'feedback',component: ()=> import('@/views/feedback.vue')},
      {path:'/AppConfig',name:'AppConfig',component:()=>import('@/views/AppConfig.vue')},
      {path:'/UserInfo',name:'UserInfo',component:()=>import('@/views/UserInfo.vue')},
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
